package com.zr.inquiry.service;

import com.zr.inquiry.model.*;
import com.zr.util.ResultVo;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.Valid;
import java.util.List;

/**
 * Created by 天赐 on 2019/12/27.
 */
public interface InquiryService {
    legalperson getPersonById(Integer legalPersonId);

    List<Supplier> getSupplier(String legalPersonCode);

    ResultVo getPage(inquirytotal inquirytotal);

    ResultVo getSupPage(SupplierPage supplierPage);

    ResultVo getSparPage(SparePage sparePage);

    ResultVo  deleteInquiry(InquiryDelete inquiryDelete);

    List<inquirytotal> queryById(String requestForQuotationId);

    inquiryend seeInquiryTotal(Integer id);

    List<InquirySpare> seeSpareInquiry(Integer id);

    List<InquirySupplier> seeSupplierInquiry(Integer id);

    ResultVo shenHe(@Valid ShenHeInquiry shenHeInquiry);

    int updateStatus(StatusUpdate statusUpdate);

    ResultVo pass(PassInquiry passInquiry);

    inquirytotal getByRid(String requestForQuotationId);

    void deleteInSpare(int inid);

    void deleteInSupplier(int inid);

    int insertInSpare(List<InquirySpare> spareList);

    int insertInSup(List<InquirySupplier> supplierList);


    ResultVo updateInquiryTotal(inquiryend inquiry);

    ResultVo addInquiry(@Valid inquiryend inquiry);

    ResultVo importPlanClass(MultipartFile file) throws Exception;
}
